<?php

/**
 * DZTCategory form.
 *
 * @package    DZTidjara
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class DZTCategoryForm extends BaseDZTCategoryForm
{
  public function __toString()
  {
    return $this->getName();
  }

  public function configure()
  {
    unset($this['created_at'], $this['updated_at']);
    
    $this->widgetSchema['description'] = new sfWidgetFormTextareaTinyMCE(array(
                                                                                'width'=>950,
                                                                                'height'=>350,
                                                                              ));
    
    $this->validatorSchema['description'] = new sfValidatorString(array('max_length' => 255));
  }
}
